package com.xfcy.content.service;

import com.xfcy.content.model.dto.CoursePreviewDto;
import com.xfcy.content.model.po.CoursePublish;

import java.io.File;

/**
 * @author 晓风残月Lx
 * @date 2023/7/1 16:04
 *      课程发布相关的接口
 */
public interface CoursePublishService {


    /**
     * 获取课程预览信息
     * @param courseId
     * @return
     */
    public CoursePreviewDto getCoursePreviewInfo(Long courseId);


    /**
     * 提交审核
     * @param companyId
     * @param courseId
     */
    public void commitAudit(Long companyId,Long courseId);

    /**
     * 课程发布
     * @param companyId
     * @param courseId
     */
    public void publish(Long companyId, Long courseId);

    /**
     * @description 课程静态化
     * @param courseId  课程id
     */
    public File generateCourseHtml(Long courseId);

    /**
     * @description 上传课程静态化页面
     * @param file  静态化文件
     */
    public void  uploadCourseHtml(Long courseId,File file);

    /**
     * 查询发布课程信息
     * @param courseId
     * @return
     */
    CoursePublish getCoursePublish(Long courseId);
}
